package cn.codesugar.advance

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import cn.codesugar.advance.tools.showToast

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        R.string.app_name.showToast()
        Handler(Looper.getMainLooper()).postDelayed({
            startActivity(Intent(this, FirstActivity::class.java))
        }, 3000L)
    }
}